package com.cl.master.service.impl;

import com.cl.master.domain.Note;
import com.cl.master.mapper.NoteMapper;
import com.cl.master.service.NoteService;
import org.springframework.stereotype.Service;;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Author xc
 * @Date 2023/5/9 22:35
 * @Version 1.0
 */
@Service
public class NoteServiceImpl implements NoteService {
    @Resource
    private NoteMapper noteMapper;
    @Override
    public void saveNote( Note note) {
        noteMapper.saveNote(note);

    }

    @Override
    public List<Map<String, Object>> getNote() {
        List<Map<String,Object>> data = noteMapper.getNote();
        return data;
    }

    @Override
    public void deleteNote(String title) {
        noteMapper.deleteNote(title);
    }


}
